package model
{
	import flash.filters.DropShadowFilter;
	
	import mx.collections.ArrayCollection;
	
	import org.flashIso.engine.core.Point2D;
	import org.flashIso.engine.objects.IsoObject;
	import org.flashIso.engine.objects.IsoTile;
	import org.robotlegs.mvcs.Actor;
	
	public class ModelSelection extends Actor
	{
		public var startDragPosition:Point2D;
		public var isDragging:Boolean = false;
		public var startDragObject:IsoObject;
		
		
		public var selectionFilters:Array = [new DropShadowFilter(0, 0, 0xffffff,1, 6,6,1, 1, true), new DropShadowFilter(0, 0, 0,1, 6,6,1,1)];
			
		public var selectedTiles:ArrayCollection = new ArrayCollection();
		public var selectedObjects:ArrayCollection = new ArrayCollection();
		
		public function isTileSelected(tile:IsoTile) : Boolean {
			return (selectedTiles.getItemIndex(tile) >= 0);
		}
		public function isObjectSelected(obj:IsoObject) : Boolean {
			return (selectedObjects.getItemIndex(obj) >= 0);
		}
	}
}